package test.java.ME.VPC.S;

import A_V.C.RatioMap;
import A_V.E.RatioMap_E;
import E_A.ME.analysis.E.CogsBinaryForest_AE;
import ME.VPC.M.app.App;
import ME.VPC.S.ne.App_S;
import ME.VPC.S.ne.Page_X_S_VSE;
import M_V.MVQ.button.DetaButton;
import M_V.MVQ.tabbedpane.DetabbedPane;
import O_V.OSI.AOP.neo.tts.ReadChinese;
import P_V.PEQ.AMV.ECS.test.SensingTest;
import S_A.AVQ.OVQ.OSQ.VSQ.obj.Verbal;
import S_A.VSQ.parser.EmotionSample;
import S_A.pheromone.IMV_SQI;
import S_A.pheromone.IMV_SQI_;
import S_A.pheromone.IMV_SQI_S_;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;

import javax.accessibility.AccessibleContext;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.JTextPane;
import javax.swing.table.DefaultTableModel;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.FocusTraversalPolicy;
import java.awt.Font;
import java.awt.GraphicsConfiguration;
import java.awt.LayoutManager;
import java.awt.PopupMenu;
import java.awt.dnd.DropTarget;
import java.awt.event.ComponentListener;
import java.awt.event.ContainerListener;
import java.awt.event.FocusListener;
import java.awt.event.HierarchyBoundsListener;
import java.awt.event.HierarchyListener;
import java.awt.event.InputMethodListener;
import java.awt.event.KeyListener;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.awt.event.MouseWheelListener;
import java.awt.image.BufferStrategy;
import java.beans.PropertyChangeSupport;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.Vector;

import static org.mockito.Mockito.any;
import static org.mockito.Mockito.anyString;
import static org.mockito.Mockito.when;

/*
 * 个人著作权人, 作者 罗瑶光, 浏阳
 * yaoguangluo@outlook.com, 313699483@qq.com, 2080315360@qq.com,
 * (lyg.tin@gmail.com2018年回国后因国内G网屏蔽不再使用）
 * 15116110525-浏阳德塔软件开发有限公司-创始人-法人-总经理-永久非盈利-
 * 430181198505250014, G24402609, EB0581342
 * 204925063, 389418686, F2406501, 0626136
 * 湖南省 浏阳市 集里街道 神仙坳社区 大塘冲一段路 208号 阳光家园别墅小区 第十栋别墅 第三层
 * */
class Page_X_S_VSETest {
	@Mock
	JTextPane data;
	@Mock
	JTextPane statistic;
	@Mock
	JTextField name;
	@Mock
	JTable table;
	// Field tableData_old of type Object[] - was not mocked
	// since Mockito doesn't mock arrays
	@Mock
	DefaultTableModel newTableModel;
	@Mock
	CogsBinaryForest_AE _A;
	@Mock
	IMV_SQI posFec;
	@Mock
	JTextPane text;
	@Mock
	DetabbedPane jTabbedpane;
	@Mock
	App_S app_S;
	@Mock
	ReadChinese readChinese;
	@Mock
	DetaButton buttonSum;
	@Mock
	DetaButton buttonCrt;
	@Mock
	DetaButton buttonPrev;
	@Mock
	DetaButton buttonNext;
	@Mock
	DetaButton buttonCTE;
	@Mock
	DetaButton buttonFRS;
	@Mock
	DetaButton buttonETC;
	@Mock
	DetaButton buttonCTV;
	@Mock
	IMV_SQI dic_xj;
	@Mock
	IMV_SQI pos;
	@Mock
	IMV_SQI pose;
	@Mock
	IMV_SQI etc;
	@Mock
	IMV_SQI cte;
	@Mock
	IMV_SQI posec;
	@Mock
	IMV_SQI posFullec;
	@Mock
	List<Verbal> verbals;
	@Mock
	List<String> copy;
	@Mock
	List<String> dic_list;
	@Mock
	List<String> sets;
	@Mock
	List<String> copy_xj;
	@Mock
	IMV_SQI_ dic_map;
	@Mock
	IMV_SQI dic_chu_fang;
	@Mock
	IMV_SQI dic_mz;
	@Mock
	IMV_SQI dic_zf;
	@Mock
	IMV_SQI dic_yy;
	@Mock
	IMV_SQI dic_fg;
	@Mock
	IMV_SQI dic_ff;
	@Mock
	IMV_SQI_ dic_sy;
	@Mock
	IMV_SQI dic_tl;
	@Mock
	IMV_SQI dic_bzm;
	@Mock
	IMV_SQI_ dic_gn;
	@Mock
	IMV_SQI dic_lcbx;
	@Mock
	IMV_SQI dic_lcyy;
	@Mock
	IMV_SQI dic_zhfx;
	@Mock
	IMV_SQI dic_zhjb;
	@Mock
	IMV_SQI dic_yao_ming;
	@Mock
	IMV_SQI dic_chengfen_danwei;
	@Mock
	IMV_SQI dic_yong_fa;
	@Mock
	IMV_SQI dic_yong_liang;
	@Mock
	IMV_SQI dic_yao_li;
	@Mock
	IMV_SQI dic_zhu_yi;
	@Mock
	IMV_SQI dic_shi_ying;
	@Mock
	IMV_SQI dic_bu_liang_fan_ying;
	@Mock
	IMV_SQI dic_yao_wu_xiang_hu_zuo_yong;
	@Mock
	IMV_SQI dic_qi_ta;
	@Mock
	IMV_SQI dic_jie_shao;
	@Mock
	IMV_SQI_ dic_lx;
	@Mock
	IMV_SQI_ dic_by;
	@Mock
	IMV_SQI_ dic_wx;
	@Mock
	IMV_SQI_ dic_bl;
	@Mock
	IMV_SQI_ dic_lc;
	@Mock
	IMV_SQI_ dic_zd;
	@Mock
	IMV_SQI_ dic_bf;
	@Mock
	IMV_SQI_ dic_zl;
	@Mock
	IMV_SQI_ dic_jy;
	@Mock
	IMV_SQI_ dic_yh;
	@Mock
	IMV_SQI_ dic_yf;
	@Mock
	IMV_SQI_ dic_yx;
	@Mock
	Map<String, Map<String, Double>> DNNmap;
	@Mock
	EmotionSample emotionSample;
	@Mock
	RatioMap ratioMap;
	@Mock
	RatioMap_E ratioMap_E;
	@Mock
	SensingTest sensingTest;
	@Mock
	List<Component> component;
	@Mock
	LayoutManager layoutMgr;
	@Mock
	FocusTraversalPolicy focusTraversalPolicy;
	@Mock
	Set<Thread> printingThreads;
	@Mock
	ContainerListener containerListener;
	@Mock
	Color preserveBackgroundColor;

	@Mock
	Component modalComp;
	// Field modalAppContext of type AppContext - was not mocked
	// since Mockito doesn't mock a Final class when
	// 'mock-maker-inline' option is not set

	@Mock
	Container parent;
	// Field appContext of type AppContext - was not mocked
	// since Mockito doesn't mock a Final class when
	// 'mock-maker-inline' option is not set
	@Mock
	Color foreground;
	@Mock
	Color background;
	@Mock
	Font font;
	@Mock
	Font peerFont;
	@Mock
	Cursor cursor;
	// Field locale of type Locale - was not mocked since
	// Mockito doesn't mock a Final class when
	// 'mock-maker-inline' option is not set
	@Mock
	GraphicsConfiguration graphicsConfig;
	@Mock
	BufferStrategy bufferStrategy;
	@Mock
	DropTarget dropTarget;
	@Mock
	Vector<PopupMenu> popups;
	// Field focusTraversalKeys of type Set[] - was not mocked
	// since Mockito doesn't mock arrays
	@Mock
	Object LOCK;
	// Field acc of type AccessControlContext - was not mocked
	// since Mockito doesn't mock a Final class when
	// 'mock-maker-inline' option is not set
	@Mock
	Dimension minSize;
	@Mock
	Dimension prefSize;
	@Mock
	Dimension maxSize;
	// Field componentOrientation of type ComponentOrientation -
	// was not mocked since Mockito doesn't mock a Final class
	// when 'mock-maker-inline' option is not set
	@Mock
	ComponentListener componentListener;
	@Mock
	FocusListener focusListener;
	@Mock
	HierarchyListener hierarchyListener;
	@Mock
	HierarchyBoundsListener hierarchyBoundsListener;
	@Mock
	KeyListener keyListener;
	@Mock
	MouseListener mouseListener;
	@Mock
	MouseMotionListener mouseMotionListener;
	@Mock
	MouseWheelListener mouseWheelListener;
	@Mock
	InputMethodListener inputMethodListener;
	@Mock
	PropertyChangeSupport changeSupport;
	@Mock
	Object objectLock;
	// Field compoundShape of type Region - was not mocked since
	// Mockito doesn't mock a Final class when
	// 'mock-maker-inline' option is not set
	// Field mixingCutoutRegion of type Region - was not mocked
	// since Mockito doesn't mock a Final class when
	// 'mock-maker-inline' option is not set
	// Field eventCache of type EventQueueItem[] - was not
	// mocked since Mockito doesn't mock arrays
	@Mock
	Map<Class<?>, Boolean> coalesceMap;

	@Mock
	AccessibleContext accessibleContext;
	@InjectMocks
	Page_X_S_VSE page_X_S_VSE;

	@BeforeEach
	void setUp() {
		MockitoAnnotations.initMocks(this);
	}

	@Test
	void testDoFwaArrangement() {
		when(_A.sortWordFrequencyMapToSortMap(any()))
				.thenReturn(new IMV_SQI_S_());

		// mock trif IMV_SQI_S_ result =
		// page_X_S_VSE.doFwaArrangement(new IMV_SQI_SS(), new
		// App());
		// mock trif Assertions.assertEquals(new IMV_SQI_S_(),
		// result);
	}

	@Test
	void testInitPage() {
		// mock trif page_X_S_VSE.initPage(null, new App());
	}

	@Test
	void testSimpleClicked() {
		when(_A.sortWordFrequencyMapToSortMap(any()))
				.thenReturn(new IMV_SQI_S_());
		List<String> strings = new ArrayList<>();
		strings.add("String");
		when(_A.parserMixedString(anyString()))
				.thenReturn(new ArrayList<>(strings));

		page_X_S_VSE.simpleClicked(new App());
	}

	@Test
	void testTableSections() {
		// mock trif page_X_S_VSE.tableSections(new App());
	}
}

//Generated with love by TestMe :) Please report issues and submit feature requests at: http://weirddev.com/forum#!/testme